<%@ page language="Java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="sec"
	uri="http://www.springframework.org/security/tags"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>

<div style="display: inline;"><spring:message code="spring.header.logo"/></div>

<div style="display: inline;">
	<a href="?lang=pl"><img alt="Polski/Polish" src="img/plflag.png" /></a> 
	<a href="?lang=en"><img alt="English/Angielski" src="img/gbflag.png"></a>
</div>

<div style="display: inline; float: right">
	<sec:authorize access="!isAuthenticated()">
		<a href="<c:url value="/login.html" /> "><spring:message code="spring.header.login"/></a>
		<a href="<c:url value="/register.html"/>"><spring:message code="spring.header.register"/></a>
	</sec:authorize>
	<sec:authorize access="isAuthenticated()">
		<a href="<c:url value="/logout.html"/>"><spring:message code="spring.header.logout"/></a>
	</sec:authorize>

</div>